﻿#include "qTerminalChar.h"

#include <QFontMetrics>
qTerminalChar::qTerminalChar()
{
    this->ch = ' ';
    this->terminalFont.foreground = QColor(Qt::white);
    this->terminalFont.background = QColor(Qt::black);
}

qTerminalChar::qTerminalChar(char ch):ch(ch)
{
    if(ch=='\0')
        this->ch = ' ';
    this->terminalFont.foreground = QColor(Qt::white);
    this->terminalFont.background = QColor(Qt::black);
}

void qTerminalChar::setFont(qTerminalFont *pTerminalFont)
{
    this->terminalFont = *pTerminalFont;
}
